/**
 * 获取目标文件夹下的所有文件集合
 */

const globby = require('globby')
const path = require('path')

let traget = path.join(__dirname, '../')
async function globFunction() {
  const _files = await globby(['**/*'], { cwd: traget })
  console.log(_files)
  // 'index.js'
}

globFunction()
